package com.smart.community.feign.security;

import com.smart.community.commons.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 安防服务Feign接口
 * 
 * @author Wu.Liang
 */
@FeignClient(
    name = "smart-community-security",
    fallback = SecurityFeignClientFallback.class
)
public interface SecurityFeignClient {
    
    /**
     * 获取门禁记录
     * 
     * @param userId 用户ID
     * @return 门禁记录
     */
    @GetMapping("/security/access/{userId}")
    Result<?> getAccessRecords(@PathVariable("userId") Long userId);
    
    /**
     * 获取报警记录
     * 
     * @param userId 用户ID
     * @return 报警记录
     */
    @GetMapping("/security/alarm/{userId}")
    Result<?> getAlarmRecords(@PathVariable("userId") Long userId);
    
    /**
     * 获取监控信息
     * 
     * @param userId 用户ID
     * @return 监控信息
     */
    @GetMapping("/security/monitor/{userId}")
    Result<?> getMonitorInfo(@PathVariable("userId") Long userId);
} 